import type {API, DynamicObject, IPage, PageParams} from "@/type/type";
import {useGet} from "@/utils/request";

export const listCourseSubjectAPI = (params: DynamicObject) => {
  return useGet<API.ICourseSubject[]>('/courseSubject/list', params)
}

export const pageCourseSubjectAPI = (params: PageParams) => {
  return useGet<IPage<API.ICourseSubject>>('/courseSubject/page', params)
}
